<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<h4>
Entered as <security:authentication property="principal.username"/>
<security:authorize access="hasRole('ROLE_ADMIN')">
    <a href='${pageContext.request.contextPath}/admin'>Admin page</a>
</security:authorize>
<a href="${pageContext.request.contextPath}/profile">User profile</a>
<a href="<c:url value='/j_spring_security_logout' />"> Logout</a>
<hr/>
</h4>